package org.example.test11;

import lombok.extern.slf4j.Slf4j;
import org.example.test11.config.AppConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author: luyg
 * @Date: 2024/07/17/19:05
 * @Description:
 */
@Slf4j
public class MainTest {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
		Object dog = annotationConfigApplicationContext.getBean("Dog");
		log.info(dog.toString());
	}
}
